<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
    <script>
    let a;
    let arr=[1,2,3];

    a=...arr;

    alert(a);
    </script>
  </head>
  <body>

  </body>
</html>
